#ifndef NEOSLIDER_H
#define NEOSLIDER_H

#include "stdafx.h"
#include <QSlider>

class NeoSliderPrivate;
class NeoSlider : public QSlider
{
    Q_OBJECT
    NEO_PUBLIC_CREATE(NeoSlider)
    NEO_PUBLIC_PROPERTY_CREATE_H(QColor, IndicatorColor)
    NEO_PUBLIC_PROPERTY_CREATE_H(QColor, TrackColor)
    NEO_PUBLIC_PROPERTY_CREATE_H(QColor, BackgroundColor)
public:
    NeoSlider(QWidget *parent = nullptr);
    NeoSlider(Qt::Orientation orientation, QWidget *parent = nullptr);
    ~NeoSlider();

protected:
    void mousePressEvent(QMouseEvent *event) override;
    void mouseMoveEvent(QMouseEvent *event) override;
    void resizeEvent(QResizeEvent *event) override;
    void paintEvent(QPaintEvent *event) override;
};

#endif